﻿#pragma once

#include <cctype>
#include <any>

namespace Server::MirForms::VisualMapInfo::Control::Forms
{
    class MiningDetailForm : public System::Windows::Forms::Form
    {
    public:
        virtual ~MiningDetailForm()
        {
            delete components;
            delete Range;
            delete label3;
            delete Y;
            delete label2;
            delete DoneButton;
            delete X;
            delete label1;
        }

        MiningDetailForm();

    private:
        void DoneButton_Click(std::any sender, EventArgs *e);

        void Insert(std::any sender, KeyPressEventArgs *e);


        /// <summary>
        /// Required designer variable.
        /// </summary>
        System::ComponentModel::IContainer *components = nullptr;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
    protected:
        void Dispose(bool disposing) override;

        #pragma region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
    private:
        void InitializeComponent();

        #pragma endregion

    public:
        System::Windows::Forms::TextBox *Range;
    private:
        System::Windows::Forms::Label *label3;
    public:
        System::Windows::Forms::TextBox *Y;
    private:
        System::Windows::Forms::Label *label2;
        System::Windows::Forms::Button *DoneButton;
    public:
        System::Windows::Forms::TextBox *X;
    private:
        System::Windows::Forms::Label *label1;
    };
}
